package com.example.leetcode.array;

import com.example.leetcode.array.common.ArrayUtils;

public class leetcode42 {
    public static void main(String[] args) {
        int[] height = {0, 1, 0, 2, 1, 0, 1, 3, 2, 1, 2, 1};

        Solution solution = new Solution();
        int trap = solution.trap(height);
        System.out.println(trap);

    }

    static class Solution {
        public int trap(int[] height) {
            return ArrayUtils.trap(height);
        }
    }
}
